package com.zqx.facade.client;

import com.zqx.facade.abstractfacade.AbstractEncryptFacade;
import com.zqx.facade.facade.EncryptFacade;
import com.zqx.facade.utils.XMLUtil;

/**
 * description: 客户端测试类
 * @author zqx
 * @date 2018/09/04
 */
public class Client {

    public static void main(String[] args) {
        //EncryptFacade encryptFacade = new EncryptFacade();
        //获取配置文件中的外观类
        AbstractEncryptFacade encryptFacade = (AbstractEncryptFacade)XMLUtil.getBean();
        encryptFacade.fileEncrypt("src//main//java//com//zqx//facade//file//src.txt","src//main//java//com//zqx//facade//file//des.txt");
    }
}
